<?php
/**
 * @return
 * @author 朱乐斌
 * @date
 */

namespace app\api\controller;

use app\api\model\LawFirmModel;
use app\controller\api\Base;
use app\Request;

class LawFirm extends BaseController
{

    // 获取律所列表
    public function LawFirmList(Request $request)
    {
        $data = new LawFirmModel();
        $data = $data->field('id,name,logo,phone')->select();
        $this->success($data);
    }

    // 获取律所详细信息

    public function LawFirmDetail(Request $request)
    {
        $data = new LawFirmModel();
        $data = $data->field('id,name,logo,phone,content')->find($request->param('id'));
        $this->success($data);
    }

}